package com.yunzone.cloud.module.pay.service.impl;

import com.yunzone.cloud.common.entity.Result;
import com.yunzone.cloud.module.pay.service.PaymentFeignService;
import com.yunzone.cloud.modules.payment.entity.Payment;
import org.springframework.stereotype.Component;

@Component
public class PaymentFeignServiceHystrixImpl implements PaymentFeignService {
    @Override
    public Result<Payment> paymentSuccess(Long id) {
         return new Result(555,
                 false,
                 "paymentSuccess响应异常（全局），来自80，请稍后再试，"+Thread.currentThread().getName());
    }
    @Override
    public Result paymentFail(Long id) {
         return new Result(555,
                 false,
                 "paymentSuccess响应异常（全局），来自80，请稍后再试，"+Thread.currentThread().getName());
    }
}
